{   "PrintTemplate":true,
    "ip": "<%=ip%>",
    "port": <%=port%>,
    "dir": "<%=dir%>",
    "padding": 1,
    "FontSize": <%=parseInt(30*pxt)%>,
    "width": <%=parseInt(372*pxt)%>,
    "font": "arial_unicode_ms.ttf",
    "border": 0,
    "showdialog": true,
    "align": 1,
    "vertical": 2,
    "items": [
        { 
            "height": <%=parseInt(40*pxt)%>,
            "items": [
                {
                    "width": "40%",
                    "align": <%=dir=='rtl'?3:1%>,
                    "text":  "<%=getvalue('@order_number',language)%>"
                },
                {
                    "width": "60%",
                    "text": "<%=Order_id%>"
                }
            ]
        },
        { 
            "height": <%=parseInt(40*pxt)%>,
            "items": [
                {
                    "width": "40%",
                    "align": <%=dir=='rtl'?3:1%>,
                    "text": "<%=getvalue('@restaurat_table',language)%>"
                },
                {
                    "width": "60%",
                    "text": "<%=cateringPosition_name%>"
                }
            ]
        },
        { 
            "height": <%=parseInt(40*pxt)%>,
            "items": [
                {
                    "width": "40%",
                    "align": <%=dir=='rtl'?3:1%>,
                    "text":  "<%=getvalue('@order_holder',language)%>"
                },
                {
                    "width": "60%",
                    "text": "<%=person_in_charge%>"
                }
            ]
        },
        {  
            "height": <%=parseInt(40*pxt)%>,
            "items": [
                {
                    "width": "76%",
                    "align": <%=dir=='rtl'?3:1%>, 
                    "text": "<%=getvalue('@name_of_food',language)%>"
                },
                {
                    "width": "24%",
                    "align": 2,
                    "text": "<%=getvalue('@number_lenght',language)%>" 
                }
            ]
        },
        <%for(var i=0;i<subs.length;i++){%>
        { 
            "height": <%=parseInt(40*pxt)%>,
            "items": [
                {
                    "width": "76%",
                    "align": <%=dir=='rtl'?3:1%>,
                    "text": "<%=subs[i].name%>"
                },
                {
                    "width": "24%",
                    "align": 2,
                    "text": "<%=subs[i].amount%>"
                }
            ]
        },
        <%}%>{ 
            "height": <%=parseInt(40*pxt)%>,
            "items": [
                { 
                    "align": 2,
                    "text": "<%=datetime%>"
                } 
            ]
        },
        { 
            "height": <%=parseInt(40*pxt)%>,
            "items": [
                { 
                    "align": 2,
                    "text": "-------------------------"
                } 
            ]
        }
    ]
}